/**
 * <p>Copyright: Copyright (c) 2014</p>
 * <p>Company: ---Technology Co. Ltd</p>
 * <p>2014-4-29</p>
 * @author Jan.Zhang
 */
package com.xianl.busiplat.po;

import java.io.Serializable;
import java.util.List;


/** 
 * desc: UserRole Model mapping db table: t_user_role
 * <p>author: Jan.Zhang </p>
 * date: 2014-4-29
 */
public class UserRole implements Serializable{
	
	/**
	 * long:serialVersionUID 
	 */
	private static final long serialVersionUID = -7342285516212172255L;
	private Integer id;
	private Integer priority;
	private Integer userId;
	private Integer groupId;
	private Integer roleId;
	
	private List<RolePermission> permissions;

	
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	
	/**
	 * @return the priority
	 */
	public Integer getPriority() {
		return priority;
	}

	
	/**
	 * @param priority the priority to set
	 */
	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	
	/**
	 * @return the userId
	 */
	public Integer getUserId() {
		return userId;
	}

	
	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	
	/**
	 * @return the groupId
	 */
	public Integer getGroupId() {
		return groupId;
	}

	
	/**
	 * @param groupId the groupId to set
	 */
	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	
	/**
	 * @return the roleId
	 */
	public Integer getRoleId() {
		return roleId;
	}

	
	/**
	 * @param roleId the roleId to set
	 */
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	
	/**
	 * @return the permissions
	 */
	public List<RolePermission> getPermissions() {
		return permissions;
	}

	
	/**
	 * @param permissions the permissions to set
	 */
	public void setPermissions(List<RolePermission> permissions) {
		this.permissions = permissions;
	}
	
	
}
